package jfox.platform.common;

import java.util.ArrayList;
import java.util.List;

/**
 * 用来支持 extjs 分页的返回 List 对象
 *
 * @author <a href="mailto:yang_y@sysnet.com.cn">Young Yang</a>
 */
public class PaginationList<T> {

    private int totalCount;

    private List<T> datas = new ArrayList<T>();

    public PaginationList(List<T> currentPageDatas, int totalCount) {
        this.datas.addAll(currentPageDatas);
        this.totalCount = totalCount;
    }

    public List<T> getDatas() {
        return datas;
    }

    public int getTotalCount() {
        return totalCount;
    }

    public static void main(String[] args) {

    }
}
